<!doctype html>
<head>
<meta charset="utf-8">
<title>hell3</title>
<style>
body{
	background-image:url('mc_background.jpg');
	/*background-repeat:repeat-x;*/
}
</style>
</head>
<html>
<h1 style="text-align:center">Minecraft</h1>
<pre>
#include &lt;stdio.h&gt;
#include &lt;string.h&gt;
int main(){
	freopen("input.txt","r",stdin);
	freopen("output.txt","w",stdout);
	int k,j,t,i,a[10]={0};
	char c[16]={0},b[10][16]={0};
	//c[16]={0};
	for(i=0;i<10;i++)
		scanf("%s%d",b[i],&a[i]);
	for(i=0;i<9;i++){
		k=i;
		for(j=i+1;j<10;j++){
			if(a[j]>a[k])k=j;	
		}
		if(k!=i){
			t=a[k];
			a[k]=a[i];
			a[i]=t;
			strcpy(c,b[k]);
			strcpy(b[k],b[i]);
			strcpy(b[i],c);
		}
	}
	for(i=0;i<10;i++)
		printf("%s %d\n",b[i],a[i]);
	return 0;
}
</pre>
</html>